<?php

namespace app\qsapi\validate;

use think\Validate;

class YunPhoneCreateValidate extends Validate
{
    protected $rule = [
        'good_code'    => 'require',
        'order_num'    => 'require',
        'good_num'     => 'require|number|gt:0',
        'validEndTime' => 'require|date',

    ];

    protected $message = [
        'good_code.require'    => '商品编码必须',
        'order_num.require'    => '订单号必须',
        'good_num.require'     => '商品数量必须',
        'validEndTime.require' => '有效时间必须',
        'validEndTime.date'    => '有效时间格式错误',
        'good_num.number'      => '商品数量必须为数字',
        'good_num.gt'          => '商品数量必须大于0',
    ];
}